//
//  VSaleVideosDetailModel.m
//  STL_ Animation
//
//  Created by dllo on 16/4/1.
//  Copyright © 2016年 STL. All rights reserved.
//

#import "VSaleVideosDetailModel.h"
#import "VSaleArtistModel.h"

@implementation VSaleVideosDetailModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource {
    self = [super initWithDataSource:dataSource];
    if (self) {
        
        [self setValuesForKeysWithDictionary:dataSource];
        
        NSMutableArray *arr = [NSMutableArray arrayWithCapacity:0];
        
        for (NSDictionary *dic in self.artists) {
            VSaleArtistModel *artistModel = [[VSaleArtistModel alloc] initWithDataSource:dic];
            [arr addObject:artistModel];
        }
        
        self.artists = [NSArray arrayWithArray:arr];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        _Id = value;
    }
    if ([key isEqualToString:@"description"]) {
        _Description = value;
    }
}
@end
